package znbkTestPaperNtxl.savePaper;

import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;
import znbkTestPaperNtxl.ZnbkPaperNtxlInfor;

/**
 * Created by Administrator on 2018\2\28 0028.
 */

public class SaveTrainingDifficultProblemsApi extends BaseApi {


//    private SaveTrainingDifficultProblemsEntity mSaveTrainingDifficultProblemsEntity;
//
//    public SaveTrainingDifficultProblemsEntity getSaveTrainingDifficultProblemsJson() {
//        return mSaveTrainingDifficultProblemsEntity;
//    }
//
//    public void setSaveTrainingDifficultProblemsJson(SaveTrainingDifficultProblemsEntity saveTrainingDifficultProblemsEntity) {
//        this.mSaveTrainingDifficultProblemsEntity = saveTrainingDifficultProblemsEntity;
//    }

    public SaveTrainingDifficultProblemsApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        PostServer postServer = retrofit.create(PostServer.class);

//        return httpPostServer.saveTrainingDifficultProblemsJson(mSaveTrainingDifficultProblemsEntity);
        return postServer.SaveHardQues(ZnbkPaperNtxlInfor.SaveTrainingDifficultProblemsEntity);
    }
}